//package com.zmn.plat.admin.api.category;
//
//import com.alibaba.dubbo.config.annotation.Reference;
//import com.zmn.common.dto.VtDTO;
//import com.zmn.common.dto2.ResponseDTO;
//import com.zmn.plat.admin.controller.PlatBaseController;
//import com.zmn.plat.dubbo.interfaces.category.BaseCategoryListRemoteService;
//import com.zmn.plat.dubbo.interfaces.ficocategory.FicoCategoryListRemoteService;
//import com.zmn.plat.dubbo.interfaces.servcategory.ServCategoryListRemoteService;
//import com.zmn.plat.dubbo.utils.DubboConsts;
//import com.zmn.plat.services.interfaces.category.BaseCategoryService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.ResponseBody;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.util.List;
//
///**
// * 绩效分类/服务分类/产品分类查询API
// *
// * @uthor heguanghua
// * @since 2019/10/16 16:35
// */
//@Controller
//@RequestMapping("/api/category/")
//public class ApiCategoryListController extends PlatBaseController {
//
//    @Reference(version = DubboConsts.INTERFACE_VERSION, check = false)
//    private FicoCategoryListRemoteService ficoCategoryRemoteService;
//
//    @Reference(version = DubboConsts.INTERFACE_VERSION, check = false)
//    private ServCategoryListRemoteService servCategoryRemoteService;
//
//    @Reference(version = DubboConsts.INTERFACE_VERSION, check = false)
//    private BaseCategoryListRemoteService categoryRemoteService;
//
//    @Autowired
//    private BaseCategoryService categoryService;
//
//
//    /**
//     * 取得全部绩效分类列表
//     *
//     * @param request
//     * @param response
//     */
//    @RequestMapping(value = "fico/listChilds")
//    @ResponseBody
//    public ResponseDTO<List<VtDTO>> listFicoChilds(HttpServletRequest request, HttpServletResponse response) {
//        return ficoCategoryRemoteService.listFicoCategoryVt();
//    }
//
//    /**
//     * 取得全部服务分类列表
//     *  @param request
//     * @param response
//     * @return
//     */
//    @RequestMapping(value = "service/listChilds")
//    @ResponseBody
//    public ResponseDTO<List<VtDTO>> listServiceChilds(HttpServletRequest request, HttpServletResponse response) {
//        return servCategoryRemoteService.listServCategoryVt();
//    }
//
//    /**
//     * 取得下级产品分类列表
//     *
//     * @param request
//     * @param response
//     * @param parentId
//     */
//    @RequestMapping(value = "product/listChilds")
//    @ResponseBody
//    public ResponseDTO<List> listProductChilds(HttpServletRequest request, HttpServletResponse response,
//                                               @RequestParam(value = "parentId", defaultValue = "1") Integer parentId) {
//        return categoryRemoteService.listErpCategoryVtByParentId(parentId);
//    }
//}
